package com.hmall.api.cart;

import com.hmall.api.item.dto.ItemDTO;
import com.hmall.api.item.po.Cart;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.Collection;
import java.util.List;

/**
 * @author qscvb
 */
@FeignClient(value = "cart-service",path = "/carts")
public interface CartClient {
    @DeleteMapping
    void deleteCartItemByIds(@RequestParam("ids") List<Long> ids);

    //    @PutMapping("/money/deduct")
//    public void deductMoney(@RequestParam("pw") String pw,@RequestParam("amount") Integer amount);
//    @GetMapping
//    List<ItemDTO> queryItemByIds(@RequestParam("ids") Collection<Long> ids);

//    @PutMapping
//    public void updateCart(@RequestBody Cart cart);
}